package com.mt.course.controller;

import com.mt.common.ServiceResult;
import com.mt.course.api.service.ICourseGoodsService;
import com.mt.course.entity.CourseGoodsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class CourseGoodsController {

    @Autowired
    ICourseGoodsService courseGoodsService;

    @GetMapping("/courseGoods/findInfo")
    public ServiceResult<CourseGoodsEntity> findInfo(Map<String, Object> params) {
        return courseGoodsService.findInfo(params);
    }
}
